# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test06
# Description:
# Author:       98745
# Date:         2019/3/6
#-------------------------------------------------------------------------------

def hello(*name,type='+'):
    sum=0
    if type=='*':
        sum=1
    for i in name:
        if type=='+':
            sum+=i
        elif type=='*':
            sum*=i
    return sum
if __name__ =='__main__':
    print(hello(1,8,9,4,type='*'))
